<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Neon Admin Panel">
    <meta name="author" content="">

    <title>Green Soil | 产品库</title>


    <link rel="stylesheet" href="static/css/jquery-ui-1.10.3.custom.min.css">
    <link rel="stylesheet" href="static/css/entypo.css">
    <link rel="stylesheet" href="static/css/css.css">
    <link rel="stylesheet" href="static/css/bootstrap.css">
    <link rel="stylesheet" href="static/css/neon-core.css">
    <link rel="stylesheet" href="static/css/neon-theme.css">
    <link rel="stylesheet" href="static/css/neon-forms.css">
    <link rel="stylesheet" href="static/css/custom.css">
    <script src="./gethost.js" type="text/javascript"></script>
    <script src="static/js/jquery-1.11.0.min.js"></script>

</head>

<body class="page-body">

<div class="page-container">
    <!-- add class "sidebar-collapsed" to close sidebar by default, "chat-visible" to make chat appear always -->

    <div class="sidebar-menu">

        <header class="logo-env">

            <!-- logo -->
            <div class="logo">
                <a href="">
                    <img src="static/picture/green.png" width="150" alt="">
                </a>
            </div>

            <!-- logo collapse icon -->

            <div class="sidebar-collapse">
                <a href="#" class="sidebar-collapse-icon with-animation">
                    <!-- add class "with-animation" if you want sidebar to have animation during expanding/collapsing transition -->
                    <i class="entypo-menu"></i>
                </a>
            </div>

            <!-- open/close menu icon (do not remove if you want to enable menu on mobile devices) -->
            <div class="sidebar-mobile-menu visible-xs">
                <a href="#" class="with-animation">
                    <!-- add class "with-animation" to support animation -->
                    <i class="entypo-menu"></i>
                </a>
            </div>

        </header>

        <ul id="main-menu" class="">
            <!-- add class "multiple-expanded" to allow multiple submenus to open -->
            <!-- class "auto-inherit-active-class" will automatically add "active" class for parent elements who are marked already with class "active" -->
            <!-- 搜索框 -->
            <li id="search">
                <form method="get"  action="" enctype="multipart/form-data">
                    <input type="text" name="q" class="search-input" id="什么是" placeholder="请输入你想搜索的内容....">
                    <button type="submit">
                        <i class="entypo-search" id="submit"></i>
                    </button>
                </form>
            </li>

            <li>
                <a href="system-index.html">
                    <i class="entypo-home active"></i>
                    <span>首页</span>
                </a>
            </li>

            <li class="opened">
                <a href="">
                    <i class="entypo-database"></i>
                    <span>产品库</span>
                </a>
                <ul>
                    <li class="">
                        <a href="product-info.html">
                            <span>产品信息库</span>
                        </a>
                    </li>
                    <li class="active">
                        <a href="function-info.html">
                            <span>功能信息库</span>
                        </a>
                    </li>
                    <li>
                        <a href="part-info.html">
                            <span>零件信息库</span>
                        </a>
                    </li>
                </ul>
            </li>
            <li class="">
                <a href="">
                    <i class="entypo-lamp"></i>
                    <span>计算方法</span>
                </a>
                <ul>
                    <li>
                        <a href="calculate-method.html">
                            <span>方法库</span>
                        </a>
                    </li>
                </ul>
            </li>
            <li class="">
                <a href="">
                    <i class="entypo-rocket"></i>
                    <span>计算</span>
                </a>
                <ul>
                    <li class="">
                        <a href="product-cal.html">
                            <span>产品计算</span>
                        </a>
                    </li>
                </ul>
            </li>
            <li class="">
                <a href="">
                    <i class="entypo-chart-bar"></i>
                    <span>结果展示</span>
                </a>
                <ul>
                    <li class="">
                        <a href="product-result.html">
                            <span>产品结果</span>
                        </a>
                    </li>
                </ul>
            </li>
            <li class="">
                <a href="">
                    <i class="entypo-layout"></i>
                    <span>背景数据管理</span>
                </a>
                <ul>
                    <li class="">
                        <a href="manufacture-info.html">
                            <span>工艺数据管理</span>
                        </a>
                    </li>
                    <li>
                        <a href="transport-info.html">
                            <span>运输数据管理</span>
                        </a>
                    </li>
                    <li>
                        <a href="material-info.html">
                            <span>材料数据管理</span>
                        </a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="about-us.html">
                    <i class="entypo-info-circled"></i>
                    <span>关于我们</span>
                </a>
            </li>

        </ul>

    </div>
    <div class="main-content">

        <div class="row">

            <!-- Profile Info and Notifications -->
            <div class="col-md-6 col-sm-8 clearfix">

                <ul class="user-info pull-left pull-none-xsm">
                    <!-- 个人简介 -->
                    <li class="profile-info dropdown">
                        <!-- add class "pull-right" if you want to place this from right -->
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">

                            <img src="static/picture/head1.png" alt="" class="img-circle" width="44">
                            <a id="username"></a>
                        </a>
                    </li>
                </ul>

            </div>

            <!-- 退出按钮 -->
            <div class="col-md-6 col-sm-4 clearfix hidden-xs">
                <ul class="list-inline links-list pull-right">
                    <li>
                        <a href="index.html" >
                            <strong>Log Out</strong> <i class="entypo-logout  right"></i>
                        </a>
                    </li>
                    <li class="sep"></li>
                </ul>


                <ul class="list-inline links-list pull-right" >
                    <li>
                        <a href="play/Excel表模板.zip" >
                            <strong>Download</strong> <i class="entypo-attach left" ></i>
                        </a>
                    </li>
                    <li class="sep"></li>
                </ul>

                <ul class="list-inline links-list pull-right" >
                    <li>
                        <a data-toggle="modal" data-target="#bomtips">
                            <strong>Bom Tips </strong><i class="entypo-github left"  ></i>
                        </a>
                    </li>
                    <li class="sep"></li>
                </ul>

            </div>

        </div>
        <hr>
        <ol class="breadcrumb bc-3">
            <li>
                <a href="system-index.html"><i class="entypo-home"></i>首页</a>
            </li>
            <li>
                <a >产品库</a>
            </li>
            <li class="active">
                <strong>功能信息库</strong>
            </li>
        </ol>

        <table class="table table-bordered datatable" id="table-1">
            <thead>
            <tr>
                <th>ID</th>
                <th>功能名称</th>
                <th>备注</th>
                <th width="250px">操作</th>
            </tr>
            </thead>
            <tbody>

            </tbody>
        </table>

        <script type="text/javascript">
            var responsiveHelper;  //分页设置
            var breakpointDefinition = {  //不同设备显示
                tablet: 1024,
                phone: 480
            };
            var tableContainer;
            var functions;   //功能集合
            var userinfo;  //用户信息

            //当DOM载入就绪可以查询及操纵时绑定一个要执行的函数
            jQuery(document).ready(function ($) {
                var token = window.localStorage["token"];
                if(token==null||token==""){
                    alert("没有登录，不能下单");
                    window.location.href="login.html";
                    return false;
                }
                $.ajax({
                    type: "POST",
                    url: "http://"+g_host+"/user/getuserinfo",
                    xhrFields: {withCredentials: true},
                    data:{
                        "token":token
                    },
                    success: function (data) {
                        if (data.status == "success") {
                            userinfo = data.data;
                            $("#username").text(userinfo.username);
                            $.ajax({
                                type: "GET",
                                url: "http://"+g_host+"/function/getuserfunction?id="+userinfo.id,
                                xhrFields: {withCredentials: true},
                                success: function (data) {
                                    if (data.status == "success") {
                                        functions = data.data;
                                        reloadDom();
                                    } else {
                                        alert("获取产品信息失败，原因为" + data.data.errMsg);
                                    }
                                },
                                error: function (data) {
                                    alert("获取产品信息失败"+ data.data.errMsg);
                                    window.location.href = "login.html";
                                }
                            })
                        } else {
                            alert("登录信息过期！请重新登录！");
                            window.location.href = "login.html";
                        }
                    },
                    error: function (data) {
                        alert("登录失败，原因为服务器内部错误");
                        window.location.href = "login.html";
                    }
                });


                tableContainer = $("#table-1");
                //表格设置
                tableContainer.dataTable({
                    "sPaginationType": "bootstrap",
                    "iDisplayLength": 10000,
                    "aLengthMenu": [[-1,12, 20, 40, 80], ["All",12, 20, 40, 80]],
                    "bStateSave": true,
                    "bInfo": true,
                    "aoColumns": [
                        {"sTitle": "ID"},
                        {"sTitle": "功能名称"},
                        {"sTitle": "备注"},
                        {"sTitle": "操作"},
                    ],

                    // Responsive Settings
                    bAutoWidth: false,
                    //页面加载的分页初始化方法
                    fnPreDrawCallback: function () {
                        // Initialize the responsive datatables helper once.
                        if (!responsiveHelper) {
                            responsiveHelper = new ResponsiveDatatablesHelper(tableContainer, breakpointDefinition);
                        }
                    },
                    fnRowCallback: function (nRow, aData, iDisplayIndex, iDisplayIndexFull) {
                        responsiveHelper.createExpandIcon(nRow);

                    },
                    fnDrawCallback: function (oSettings) {
                        responsiveHelper.respond();
                    },
                });

                $(".dataTables_wrapper select").select2({
                    minimumResultsForSearch: -1
                });
            });


            //加载表格数据
            function reloadDom() {
                for (var i = 0; i < functions.length; i++) {
                    var dom = [(i + 1), functions[i],"",
                        "<td>\n" +
                        "\t\t\t\t<a href=\"#\" class=\"btn btn-info btn-sm btn-icon icon-left\"  style=\"width: 90px\"  id=\"info" + functions[i] + "\"  data-toggle=\"modal\" data-target=\"#list_detail\">\n" +
                        "\t\t\t\t\t<i class=\"entypo-info\"></i>\n" +
                        "表详情\n" +
                        "\t\t\t\t</a>\n" +
                        "\t\t\t\t<a href=\"#\" class=\"btn btn-gold btn-sm btn-icon icon-left\"  style=\"width: 90px\" id=\"graph" + functions[i] + "\"  data-toggle=\"modal\" data-target=\"#graph_detail\">\n" +
                        "\t\t\t\t\t<i class=\"entypo-heart\"></i>\n" +
                        "图详情\n"];
                    $('#table-1').dataTable().fnAddData(dom);


                    //查看功能列表详情
                    $("#info" + functions[i]).on("click", function (e) {
                        var id=this.id;
                        id=id.substring(4, id.length);
                        $.ajax({
                            type: "POST",
                            contentType: "application/x-www-form-urlencoded",
                            url: "http://"+g_host+"/function/getfunctionListInfo",
                            data:{
                              "id":userinfo.id,
                              "function":id
                            },
                            xhrFields: {withCredentials: true},
                            success: function (data) {
                                if (data.status == "success") {
                                    $('#table-2').dataTable().fnClearTable();
                                    reloadInfoDom(data.data);
                                } else {
                                    alert("查看详情失败，原因为" + data.data.errMsg);
                                    window.location.href = "product-info.html";
                                }
                            },
                            error: function (data) {
                                alert("查看详情失败，原因为" + data.data.errMsg);
                                window.location.href = "product-info.html";
                            }
                        });

                    });
                    //查看产品图详情
                    $("#graph" + functions[i]).on("click", function (e) {
                        var id = this.id;
                        id = id.substring(5, id.length);
                        $.ajax({
                            type: "POST",
                            contentType: "application/x-www-form-urlencoded",
                            url: "http://"+g_host+"/function/getfunctionGraphInfo",
                            xhrFields: {withCredentials: true},
                            data:{
                                "id":userinfo.id,
                                "function":id
                            },
                            success: function (data) {
                                if (data.status == "success") {
                                    var noderelation=[];
                                    var nodedata=[];
                                    var myChart = echarts.init(document.getElementById('neo4j2021')); //选取e-charts图表
                                    var categories = [];//数据节点类型
                                    for (var i = 0; i <= data.data.data.level; i++) { //设置结点种类
                                        if(i==0){
                                            categories[i] = {
                                                name: '功能'
                                            };
                                        }else{
                                            categories[i] = {
                                                name: i  + '级零件'
                                            };
                                        }
                                    }
/*                                    console.log(data.data.node instanceof Array);
                                    console.log(data.data.relationNodes instanceof Array);
                                    console.log(data.data);
                                    console.log(data.data.data.node);
                                    console.log(data.data.data.relationNodes);*/
                                    nodedata=NodeJsonToArray(data.data.data.node);
                                    noderelation=RelationJsonToArray(data.data.data.relationNodes);

                                    option = {
                                        // 图的标题
                                        title: {
                                            text: '功能零件关系图'
                                        },
                                        // 提示框的配置
                                        tooltip: {
                                            formatter: function (params) {  //返回结点的提示信息
                                                console.log(params.data)
                                                if (params.data.category !=undefined) {//如果触发节点
                                                    return "名字:"+params.data.nameInfo+" 系列号:"+params.data.serialInfo+" 材料:"+params.data.materialInfo
                                                        +" 产地:"+params.data.originInfo+" 运输距离:"+params.data.distanceInfo+" 运输方式:"+params.data.transportstyleInfo+
                                                    " 加工方式:"+params.data.manufacturestyleInfo;//返回标签
                                                }else {//如果触发边
                                                    return params.data.name;
                                                }
                                            }
                                        },
                                        // 工具箱
                                        toolbox: {
                                            // 显示工具箱
                                            show: true,
                                            feature: {
                                                mark: {
                                                    show: true
                                                },
                                                // 还原
                                                restore: {
                                                    show: true
                                                },
                                                // 保存为图片
                                                saveAsImage: {
                                                    show: true
                                                }
                                            }
                                        },
                                        legend: [{
                                            // selectedMode: 'single',
                                            data: categories.map(function (a) {
                                                return a.name;
                                            })
                                        }],
                                        series: [{
                                            type: 'graph', // 类型:关系图
                                            layout: 'force', //图的布局，类型为力导图
                                            symbolSize: 40, // 调整节点的大小
                                            roam: true, // 是否开启鼠标缩放和平移漫游。默认不开启。如果只想要开启缩放或者平移,可以设置成 'scale' 或者 'move'。设置成 true 为都开启
                                            scale: true, //开启缩放
                                            move: true, //开启平移
                                            symbol: ['rectangle', 'arrow'],
                                            edgeSymbol: ['rectangle', 'arrow'],
                                            edgeSymbolSize: [2, 10],
                                            edgeLabel: {
                                                normal: {
                                                    textStyle: {
                                                        fontSize: 10   //关系文字字体大小
                                                    }
                                                }
                                            },
                                            force: {
                                                repulsion: 2500,
                                                edgeLength: [10, 50]
                                            },
                                            draggable: true,
                                            lineStyle: {
                                                normal: {
                                                    width: 2,
                                                    color: '#4b565b',
                                                }
                                            },
                                            edgeLabel: {
                                                normal: {
                                                    show: true,
                                                    formatter: function (x) {
                                                        return x.data.name;
                                                    }
                                                }
                                            },
                                            label: {
                                                normal: {
                                                    show: true,
                                                    formatter: function (x) {
                                                        return x.data.des;
                                                    }
                                                }
                                            },

                                            // 数据
                                            data: nodedata,
                                            links: noderelation,
                                            categories: categories,
                                        }],

                                    };
                                    myChart.setOption(option);
                                } else {
                                    alert("查看详情失败，原因为" + data.data.errMsg);
                                    window.location.href = "product-info.html";
                                }
                            },
                            error: function (data) {
                                alert("查看详情失败，原因为" + data.data.errMsg);
                                window.location.href = "product-info.html";
                            }
                        });

                    });
                }

            }

            //功能详情的模态窗口
            function reloadInfoDom(functionInfo) {
                for (var i = 0; i < functionInfo.length;i++) {
                    var dom = [(i + 1), functionInfo[i].orderInfo, functionInfo[i].codenameInfo, functionInfo[i].nameInfo, functionInfo[i].serialInfo,
                        functionInfo[i].functionInfo, functionInfo[i].parameterInfo, functionInfo[i].numeveryInfo, functionInfo[i].materialInfo,
                        functionInfo[i].weighteveryInfo, functionInfo[i].weighttotalInfo, functionInfo[i].commentsInfo, functionInfo[i].originInfo,
                        functionInfo[i].distanceInfo, functionInfo[i].transportstyleInfo, functionInfo[i].manufacturestyleInfo, functionInfo[i].recycleInfo
                    ];
                    $('.my-model-info').dataTable().fnAddData(dom);
                }
            }

            function NodeJsonToArray(nodes) {
                var mydata=[];
                for(var i=0;i<nodes.length;i++){
                    var n;
                    if(i==0){
                        n={
                            name: nodes[i].nameInfo,
                            des: nodes[i].nameInfo,

                            codenameInfo:nodes[i].codenameInfo,
                            symbolSize: [110,40],
                            category: nodes[i].level,

                            nameInfo:nodes[i].nameInfo,
                            serialInfo:nodes[i].serialInfo,
                            materialInfo:nodes[i].materialInfo,
                            originInfo:nodes[i].originInfo,
                            distanceInfo:nodes[i].distanceInfo,
                            transportstyleInfo:nodes[i].transportstyleInfo,
                            manufacturestyleInfo:nodes[i].manufacturestyleInfo,
                            /*return "名字:"+params.data.nameInfo+" 系列号:"+params.data.serialInfo+" 材料:"+params.data.materialInfo
                                +" 产地:"+params.data.originInfo+" 运输距离:"+params.data.distanceInfo+" 运输方式:"+params.data.transportstyleInfo+
                                " 加工方式:"+params.data.manufacturestyleInfo;//返回标签*/
                        }
                    }else{
                        n={
                            name: nodes[i].id,
                            des: nodes[i].nameInfo,
                            nameInfo:nodes[i].nameInfo,
                            serialInfo:nodes[i].serialInfo,
                            materialInfo:nodes[i].materialInfo,
                            originInfo:nodes[i].originInfo,
                            distanceInfo:nodes[i].distanceInfo,
                            transportstyleInfo:nodes[i].transportstyleInfo,
                            manufacturestyleInfo:nodes[i].manufacturestyleInfo,
                            codenameInfo:nodes[i].codenameInfo,
                            symbolSize: [110,40],
                            category: nodes[i].level,
                        }
                    }

                    mydata.push(n);
                }
                //console.log(mydata);
                return mydata;
            }

            function RelationJsonToArray(relations) {
                var mydata=[];
                for(var i=0;i<relations.length;i++){
                    if(relations[i].parent==null) continue;
                    var n={
                        source: relations[i].parent,
                        target: relations[i].child,
                        name: relations[i].name,
                        des: relations[i].des
                    }
                    mydata.push(n);
                }
                //console.log(mydata);
                return mydata;

            }
        </script>


    </div>

</div>

<!--查看数据列表详情的模态窗口-->
<div class="modal fade" id="list_detail" role="dialog">
    <div class="modal-dialog" style="width:1600px">
        <div class="modal-content" style="height: 750px">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span>×</span>
                </button>
                <center>
                    <h3 class="modal-title">
                        产品详情
                    </h3>
                </center>
            </div>

            <table class="table table-bordered table-striped datatable  my-model-info" id="table-2">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>产品名称</th>
                    <th>产品系列号(s)</th>
                    <th>产品厂家</th>
                    <th>地区</th>
                    <th>产品产地</th>
                    <th>目的地</th>
                    <th>产品功率</th>
                    <th>运输距离</th>
                    <th>产品寿命</th>
                    <th>产品重量</th>
                    <th>产品参数</th>
                    <th>备注</th>
                    <th>备注</th>
                    <th>备注</th>
                    <th>备注</th>
                    <th>备注</th>
                </tr>
                </thead>
                <tbody>

                </tbody>
            </table>
        </div>
    </div>
</div>
<!--查看数据列表的方法-->
<script type="text/javascript">
    jQuery(window).load(function(){
        var responsiveHelper;
        var breakpointDefinition = {
            tablet: 1024,
            phone: 480
        };
        var tableContainer;
        var $ = jQuery;

        $("#table-2").dataTable({
            "sPaginationType": "bootstrap",
            "iDisplayLength": 15,
            "aLengthMenu": [[11,12, 13, 14, 15], [11,12, 13, 14, 15]],
            "bStateSave": true,
            "bInfo": true,
            "aoColumns": [
                {"sTitle": "ID"},
                {"sTitle": "序号"},
                {"sTitle": "零件代号"},
                {"sTitle": "零件名称"},
                {"sTitle": "零件型号"},
                {"sTitle": "零件功能"},
                {"sTitle": "零件参数"},
                {"sTitle": "零件数量/台"},
                {"sTitle": "零件材料"},
                {"sTitle": "单重（kg）"},
                {"sTitle": "总重（kg）"},
                {"sTitle": "备注"},
                {"sTitle": "产地"},
                {"sTitle": "运输距离（km）"},
                {"sTitle": "运输方式"},
                {"sTitle": "工艺方式"},
                {"sTitle": "回收（百分比）"},
            ],
        });

        $(".dataTables_wrapper select").select2({
            minimumResultsForSearch: -1
        });

    });


</script>

<!--neo4j图谱的的模态窗口-->
<div class="modal fade" id="graph_detail" role="dialog">
    <div class="modal-dialog" style="width:90%">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span>×</span>
                </button>
                <center>
                    <h3 class="modal-title" >
                        产品图详情
                    </h3>
                </center>
            </div>
            <div class="modal-body"  style="height: 750px;">
                <div id="neo4j2021" style="width:1650px;height:750px"></div>
            </div>
            <br>
        </div>
    </div>
</div>
<div class=" modal fade" id="bomtips" role="dialog">
    <div class="modal-dialog" style="width:40%">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span>×</span>
                </button>
                <center>
                    <h4 class="modal-title">
                        Bom填写小提示
                    </h4>
                </center>
            </div>

            <div style="padding-left: 20px;padding-right: 20px">

                <ul class="nav nav-tabs bordered "><!-- available classes "bordered", "right-aligned" -->
                    <li class="active">
                        <a href="#g1" data-toggle="tab">
                            <span class="visible-xs"><i class="entypo-home"></i></span>
                            <span class="hidden-xs">产品Bom</span>
                        </a>
                    </li>
                    <li>
                        <a href="#g2" data-toggle="tab">
                            <span class="visible-xs"><i class="entypo-mail"></i></span>
                            <span class="hidden-xs">工艺Bom</span>
                        </a>
                    </li>
                    <li>
                        <a href="#g3" data-toggle="tab">
                            <span class="visible-xs"><i class="entypo-mail"></i></span>
                            <span class="hidden-xs">运输Bom</span>
                        </a>
                    </li>
                    <li>
                        <a href="#g4" data-toggle="tab">
                            <span class="visible-xs"><i class="entypo-user"></i></span>
                            <span class="hidden-xs">材料Bom</span>
                        </a>
                    </li>
                </ul>

                <div class="tab-content">
                    <div class="tab-pane active" id="g1">
                        <div class="modal-body" style="height: 550px;">
                            <p><strong>产品Bom</strong>一共包含16列，分别为 序号、代号、名称、型号、功能、参数、每台数量、材料、单重(kg)、总重(kg)、备注、产地、运输距离（km）、运输方式、工艺方式、回收（百分比）。</p>
                            <p><strong>1、</strong> *序号：产品序号需要按照目录结构一样进行编写，1、1.1、1.2、2、2.1、2.2... （序号直接必须有层级关系，必须父级存在的时候才能编写子序号，否则无法进行计算！）</p>
                            <p><strong>2、</strong> 代号：代号表示企业内部对零部件的编号，可以不写！</p>
                            <p><strong>3、</strong> *名称：代表该零件的名字，必须填写，否则无法计算！</p>
                            <p><strong>4、</strong> 型号：为该零部件的零件型号，请如实填写，当其他数据缺失时，此型号信息将作为智能填补的重要依据！</p>
                            <p><strong>5、</strong> 功能：该零部件的主要作用,尽量填写，该信息将作为智能填补的依据！</p>
                            <p><strong>6、</strong> 参数：该零部件的其他参数，可以不写！</p>
                            <p><strong>7、</strong> *每台数量：每台产品所包含该零部件的数量</p>
                            <p><strong>8、</strong> *材料：该零部件的主要材料，如果是装配体，就写装配体！叶子节点的零件必须填写材料（材料信息不可缺失，如不知道请填写 null 后台会自动补全）</p>
                            <p><strong>9、</strong> *单重(kg)：一个零部件的重量，单位kg</p>
                            <p><strong>10、</strong> *总重(kg)：一台产品中该零部件的总重（该数据不可缺失！如不清楚请填写0，后台会智能补全）</p>
                            <p><strong>11、</strong> 备注：零部件的备注，可以为空，如过数据经过后台智能补全，补全信息会出现在这一栏里！</p>
                            <p><strong>12、</strong> 产地：零部件的产地</p>
                            <p><strong>13、</strong> *运输距离（km）：零部件的运输距离，必须填写！如不知道请填写0，后台会自动补全！</p>
                            <p><strong>14、</strong> *运输方式：运输方式必须填写，先查看背景运输数据填写，如不知道，请填写null后台会自动补全！</p>
                            <p><strong>15、</strong> *工艺方式：零部件的加工工工艺，先查看背景工艺数据再填写（多个工艺请用-分开，比如 切削粗加工共-切削半精加工共-切削精加工），该数据不能缺失！如不清楚请填写null后台会自动补全！如果物料没有制造阶段，请填写不计算，后台会自动跳过制造阶段！</p>
                            <p><strong>16、</strong> *回收：填写回收的百分比，（整数），该数据不可缺失！，如不清楚请填写0，后台会自动补全！</p>
                            <p><strong>注：</strong>*号为必填内容，如果不清楚请填写null（非数值型数据）和0（数值型数据）</p>
                        </div>
                    </div>
                    <div class="tab-pane" id="g2">
                        <div class="modal-body" style="height: 550px;">
                            <p><strong>工艺Bom</strong>一共包含24列，分别为工艺名称、工艺类型、机床型号、机床功率、加工材料、单位、材料去除率、数据来源、备注、煤、石油、天然气、co、co2、so2、nox、ch4、h2s、hcl、cod、nh3、cfc11、cfc12、cfc113

                            </p>

                            <p><strong>1、</strong> *工艺名称：表示该工艺的名字，需要加上加工工类型，该信息为后台计算匹配的唯二信息，不可缺失！</p>
                            <p><strong>2、</strong> *工艺类型：表示该工艺类型（比如：粗加工、半精加工、精加工...）</p>
                            <p><strong>3、</strong> 机床型号：表示加工零部件的机床代号</p>
                            <p><strong>4、</strong> 机床功率：实际功率</p>
                            <p><strong>5、</strong> *加工材料：该工艺所加工的材料,该信息作为后台计算匹配的唯二信息，不可缺失！</p>
                            <p><strong>6、</strong> 单位：kg （加工1kg该材料所产生的环境排放）</p>
                            <p><strong>7、</strong> *材料去除率：该信息不可缺失！,Double类型的数据，请如实填写</p>
                            <p><strong>8、</strong> 数据来源：填写你的数据来源</p>
                            <p><strong>9、</strong> 备注：用户备注</p>
                            <p><strong>10、</strong> *其他：环境排放的数值，小数位数最多支持20位,这些列的信息不可缺失！</p>
                            <p><strong>注：</strong>*号为必填内容，如果缺失将无法计算！</p>
                            <p><strong>注：</strong>该bom的数据单位为比能耗，即加工1kg物质所产生的电能，单位为kwh/cm3,需要用户将其转化为电能,然后和1kwh的电能所产生的环境排放进行等比例扩大或缩小！ </p>
                            <p><strong>比能耗转化为电能计算公式：</strong> 比能耗（kwh/cm3） × 10^6 ÷ 材料密度（kg/m3）= 我们的单位（kwh/kg）</p>

                        </div>
                    </div>
                    <div class="tab-pane" id="g3">
                        <div class="modal-body" style="height: 550px;">
                            <p><strong>运输Bom</strong>一共包含22列，分别为运输名称、运输工具、单位、地区、数据来源 、运输类型（陆运、水运）
                                、备注、煤、石油、天然气、co、co2、so2、nox、ch4、h2s、hcl、cod、nh3、cfc11、cfc12、cfc113
                            </p>

                            <p><strong>1、</strong> *运输名称：表示该运输的名字，该信息为后台计算匹配的唯一信息，不可缺失！</p>
                            <p><strong>2、</strong> 运输工具：表示该运输所使用的工具信息</p>
                            <p><strong>3、</strong> 单位：kg/km</p>
                            <p><strong>4、</strong> 地区：表示该运输数据来自哪个地区</p>
                            <p><strong>5、</strong> 数据来源：该信息你是从哪里搜集到的，请如实填写！</p>
                            <p><strong>6、</strong> 运输类型：陆运、水运、空运...</p>
                            <p><strong>7、</strong> 备注：用户备注</p>
                            <p><strong>8、</strong> *其他：环境排放的数值，小数位数最多支持20位,这些列的信息不可缺失！</p>
                            <p><strong>注：</strong>*号为必填内容，如果缺失将无法计算！</p>
                            <p><strong>注：</strong>此表中所有数据单位均为kg/km 无法变更，需要您自行转换输入！</p>

                        </div>
                    </div>
                    <div class="tab-pane" id="g4">
                        <div class="modal-body" style="height: 550px;">
                            <p><strong>材料Bom</strong>一共包含20列，分别为材料名称、类型（物质、能量、排放）、单位、地区、数据来源、备注
                                、煤、石油、天然气、co、co2、so2、nox、ch4、h2s、hcl、cod、nh3、cfc11、cfc12、cfc113
                            </p>

                            <p><strong>1、</strong> *材料名称：表示该运输的名字，该信息为后台计算匹配的唯一信息，不可缺失！</p>
                            <p><strong>2、</strong> 类型：该物质的类型（物质、能量、排放...）</p>
                            <p><strong>3、</strong> 单位：kg 固定不变 需要用户自行换算</p>
                            <p><strong>4、</strong> 地区：表示该物质数据来自哪个地区</p>
                            <p><strong>5、</strong> 数据来源：该信息你是从哪里搜集到的，请如实填写！</p>
                            <p><strong>7、</strong> 备注：用户备注</p>
                            <p><strong>8、</strong> *其他：环境排放的数值，小数位数最多支持20位,这些列的信息不可缺失！</p>
                            <p><strong>注：</strong>*号为必填内容，如果缺失将无法计算！</p>
                            <p><strong>注：</strong>此表中所有数据单位均为kg 无法变更，需要您自行转换输入！</p>
                        </div>
                    </div>
                </div>


            </div>

        </div>
    </div>
</div>
<link rel="stylesheet" href="static/css/datatables.responsive.css">
<link rel="stylesheet" href="static/css/select2-bootstrap.css">
<link rel="stylesheet" href="static/css/select2.css">
<link rel="stylesheet" href="static/css/jquery-jvectormap-1.2.2.css">
<link rel="stylesheet" href="static/css/rickshaw.min.css">
<link rel="stylesheet" href="static/my.css">
<!-- Bottom Scripts -->
<script src="static/js/main-gsap.js"></script>
<script src="static/js/jquery-ui-1.10.3.minimal.min.js"></script>
<script src="static/js/bootstrap.js"></script>
<script src="static/js/joinable.js"></script>
<script src="static/js/resizeable.js"></script>
<script src="static/js/neon-api.js"></script>
<script src="static/js/jquery.dataTables.min.js"></script>
<script src="static/js/TableTools.min.js"></script>
<script src="static/js/dataTables.bootstrap.js"></script>
<script src="static/js/jquery.dataTables.columnFilter.js"></script>
<script src="static/js/lodash.min.js"></script>
<script src="static/js/datatables.responsive.js"></script>
<script src="static/js/select2.min.js"></script>
<script src="static/js/neon-chat.js"></script>
<script src="static/js/neon-custom.js"></script>
<script src="static/js/neon-demo.js"></script>
<script src="static/js/fileinput.js"></script>
<!--导入echarts库-->
<script src="https://cdn.staticfile.org/echarts/4.7.0/echarts.js"></script>
<!-- Bottom Scripts -->
<script src="static/js/jquery-jvectormap-1.2.2.min.js"></script>
<script src="static/js/jquery.sparkline.min.js"></script>
<script src="static/js/d3.v3.js"></script>
<script src="static/js/rickshaw.min.js"></script>
<script src="static/js/raphael-min.js"></script>
<script src="static/js/morris.min.js"></script>
<script src="static/js/toastr.js"></script>

</body>

</html>